package com.etc.service.impl;

import com.etc.dao.PlaylistMapper;
import com.etc.entity.FxPlaylist;
import com.etc.service.FxPlaylistService;
import com.github.pagehelper.PageHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FxPlaylistServiceImpl implements FxPlaylistService {
    @Autowired
    PlaylistMapper mapper;

    Logger logger = (Logger) LogManager.getLogger(getClass());
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(FxPlaylist record) {
        return 0;
    }

    @Override
    public int insertSelective(FxPlaylist record) {
        return 0;
    }

    @Override
    public FxPlaylist selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(FxPlaylist record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(FxPlaylist record) {
        return 0;
    }

    @Override
    public List<FxPlaylist> selectByPage(Integer pageNo, Integer pageSize, String keywords) {
        PageHelper.startPage(pageNo,pageSize);
        List<FxPlaylist> fxPlaylists = mapper.selectByPage("%"+ keywords +"%");

        return fxPlaylists;
    }


}
